package com.chart.web.controller.openfeign;

import com.chart.chart.domian.req.UListReq;
import com.chart.common.core.domain.model.LoginBody;
import com.chart.web.controller.openfeign.ExternalServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/feign")
public class FeignController {

    @Autowired
    private ExternalServiceClient externalServiceClient;


    @PostMapping("/getUserList")
    public Map<String, Object> getList(@RequestBody UListReq req) {
        return externalServiceClient.getList(req);
    }




}
